package com.itheima.cloud.service.impl;

import com.itheima.cloud.mapper.OrderMapper;
import com.itheima.cloud.pojo.Order;
import com.itheima.cloud.service.OrderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.util.StringUtils;
import tk.mybatis.mapper.entity.Example;

import java.util.List;

@Service
public class OrderServiceImpl implements OrderService {
    @Autowired
    OrderMapper orderMapper;

    @Override
    public List<Order> findOrderByUserId(String username) {
        return orderMapper.selectByExample(username);
    }
}
